<?php
/**
 * @version SVN: $Id: default.php 1165 2010-04-21 17:47:16Z elkuku $
 * @package    EasyCreator
 * @subpackage Views
 * @author		EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org}
 * @author		Nikolai Plath {@link http://www.nik-it.de}
 * @author		Created on 10-Oct-2009
 * @license    GNU/GPL, see JROOT/LICENSE.php
 */

//-- No direct access
defined('_JEXEC') or die('=;)');

$langs =  JFactory::getLanguage()->getKnownLanguages();

if(count($langs) > 1)
{
    //-- Order en-GB at first position
    $l = array('en-GB' => $langs['en-GB']);
    unset($langs['en-GB']);
    $langs = $l + $langs;
}

$scopes = $this->project->getLanguagePaths();
?>

<table class="adminlist">
<thead>
    <tr>
        <td></td>
    <?php
    foreach ($scopes as $scope => $path) :
        echo '<th>'.JText::_($scope).'</th>';
    endforeach;
    ?>
    </tr>
</thead>

<tbody>

    <?php
    $k = 0;

    foreach ($langs as $tag => $lang):
    	echo '<tr class="row'.$k.'">';
        echo '<td width="10%" nowrap="nowrap"><strong>'.$tag.'</strong>';
        echo '<br />';
        echo $lang['name'].'</td>';
        foreach ($scopes as $scope => $path):
            echo '<td>';
            EasyLanguageHelper::checkFile($this->project, $tag, $scope);
            echo '</td>';
        endforeach;
        $k = 1 - $k;
        echo '</tr>';
    endforeach;
    ?>

</tbody>
</table>

<input type="hidden" id="scope" name="scope" value="" />
<input type="hidden" id="lngcreate_lang" name="lngcreate_lang" value="" />
